Skip to content

Conversation

moritzwilksch
Copy link
Contributor

following up on #2941, this would be a minimally invasive change that at least fixes typing for the direct functions without touching Model or its subclasses which would trigger a cascade of required typing changes since most other functions rely on Model.request

@DouweM
Copy link
Collaborator

DouweM commented Sep 30, 2025

@moritzwilksch I think we can also do this in the run and iter methods -- it's an arg not a return value so it wouldn't be a breaking change.

@DouweM DouweM changed the title Use Sequence[ModelMessage] for .direct functions arg types Use Sequence[ModelMessage] instead of list for method arg types Oct 1, 2025
@moritzwilksch moritzwilksch force-pushed the mw/minimal-seq-typing branch from 62b9467 to 0313ad4 Compare October 2, 2025 04:04
@moritzwilksch
Copy link
Contributor Author

thanks, changed.

@DouweM
Copy link
Collaborator

DouweM commented Oct 7, 2025

@moritzwilksch Please merge main and update the new run_stream_events method as well!

@moritzwilksch moritzwilksch force-pushed the mw/minimal-seq-typing branch from c44e8a8 to 8509865 Compare October 7, 2025 11:43
@DouweM DouweM merged commit d263b7a into pydantic:main Oct 7, 2025
30 checks passed
@DouweM
Copy link
Collaborator

DouweM commented Oct 7, 2025

@moritzwilksch Thanks Moritz!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants